package Test;

public class ManKind {
    private int sex;
    private int salary;

    public ManKind(int sex, int salary) {
        this.sex = sex;
        this.salary = salary;
    }

    public ManKind() {

    }


    public void setSex(int sex) {
        this.sex = sex;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public void manOrWoman(){
        if(sex==1)
            System.out.println("man");
        else if(sex==0)
            System.out.println("woman");
    }
    public void employeed(){
        System.out.println("grandfather");
        if(salary==0)
            System.out.println("no job");
        else
            System.out.println("job");
    }
}
